package org.tlipoca.smcommentimage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.genntii.smdomain.dto.CommentImageDTO;
import org.genntii.smdomain.entity.CommentImage;
import org.genntii.smdomain.vo.CommentImageVO;

import java.util.ArrayList;

@Mapper
public interface CommentImageMapper extends BaseMapper<CommentImage> {

    @Delete("delete from Comment_Image where comment_id = #{commentId};")
    void deleteByCommentId(Long commentId);

    void insertBatch(ArrayList<CommentImageDTO> commentImageDTOList);

    ArrayList<CommentImage> selectCommentImageListByCommentIdList(ArrayList<Long> commentIds);
}
